import { IncomingMessage, ServerResponse } from 'node:http'
import { UrlWithParsedQuery } from 'node:url'
export type MockRoute = {
  url: string
  method: string
  handler: MockHandler
}
export interface MockHandler {
  (
    req: IncomingMessage,
    res: ServerResponse,
    url: {
      parse: (url: string, parseQueryString: boolean) => UrlWithParsedQuery
    }
  ): void
}
